import cv2
path = './01.png'
img1 = cv2.imread(path)
path = './02.jpeg'
img2 = cv2.imread(path)
print(img1.shape)
img1 = cv2.resize(img1,(500,500))
img2 = cv2.resize(img2,(150,150))
#绘制边框
img1[:10,:,:20]=(25,25,25)
img1[200:350,50:200,:]=img2
cv2.imshow('img',img1)
cv2.waitKey(0)
cv2.destroyAllWindows()
